﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TrainTicketBookingSystem
{
    internal class User
    {
        public int Id { get; set; }
        public string Account { get; set; }
        public string Password { get; set; }
        public string Name { get; set; }
        public string Sex { get; set; }
        public string Phonenum { get; set; }
        public string CertificateNum { get; set; }
        public string RoleType { get; set; }

        public User()
        {
        }

        public User(int id, string account, string password, string name, string sex, string phonenum, string certificateNum, string roleType = "普通用户")
        {
            Id = id;
            Account = account;
            Password = password;
            Name = name;
            Sex = sex;
            Phonenum = phonenum;
            CertificateNum = certificateNum;
            RoleType = roleType;
        }
    }
}
